package com.atchangsha.system.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atchangsha.system.common.utils.PageUtils;
import com.atchangsha.system.common.utils.Query;
import com.atchangsha.system.dao.DiscountRulesDao;
import com.atchangsha.system.entity.DiscountRulesEntity;
import com.atchangsha.system.service.DiscountRulesService;

@Service("discountRulesService")
public class DiscountRulesServiceImpl extends ServiceImpl<DiscountRulesDao, DiscountRulesEntity> implements DiscountRulesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DiscountRulesEntity> page = this.page(
                new Query<DiscountRulesEntity>().getPage(params),
                new QueryWrapper<DiscountRulesEntity>()
        );

        return new PageUtils(page);
    }

}